package com.example.qihuibao.utils

import android.util.Log

/**
 *@author: cww
 *@desc: 日志封装，可以修改TAG，可以通过修改level屏蔽日志
 *@date: 4/23/23 10:58 PM
 */
object LogUtil {
    private const val level = Log.ERROR
    private const val TAG = "cww"

    fun e(log:String) {
        if (level <= Log.ERROR) {
            Log.e(TAG, log)
        }
    }

    fun w(log:String) {
        if (level <= Log.WARN) {
            Log.e(TAG, log)
        }
    }

    fun d(log:String) {
        if (level <= Log.DEBUG) {
            Log.e(TAG, log)
        }
    }
}